/ Assembly List / LJCNetCommon / NetCommon / TextToBytes

Namespace - LJCNetCommon


Parameters
text - The Text value.

Returns

The new byte array.

Syntax

C#
public static Byte[] TextToBytes(String text)

Creates a byte array from text. (E)

Example

C#
using LJCNetCommon;
        
// Creates a byte array from text.
private static void TextToBytes()
{
  // Setup
  string text = "Text";

  // Creates a byte array from text.
  byte[] bytes = NetCommon.TextToBytes(text);

  // Check the text.
  text = NetCommon.BytesToText(bytes);
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.